//
//  LZSegmentView.h
//  FastCall
//
//  Created by Carlson Lee on 2017/12/8.
//  Copyright © 2017年 XiaoNiu Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FCSegmentView.h"

@protocol FCSegmentManagerDelegate;
@interface FCSegmentManager : UIView

@property (nonatomic, assign) id<FCSegmentManagerDelegate> delegate;

//默认选中0
@property (nonatomic, assign) NSInteger index;

- (instancetype)initWithDelegate:(id<FCSegmentManagerDelegate>)delegate;


/**
 自定义segment,若为空则默认没有标签栏

 @param segment 标签view
 */
- (void)configSegmentView:(FCSegmentView* )segment;

@end

@protocol FCSegmentManagerDelegate <NSObject>

@optional

- (NSArray* )titlesOfSegmentManager;

- (NSArray* )vcsOfSegmentManager;

- (void )segmentSelectAtIndex:(NSInteger )index;

@end
